f = open('d:/foo.txt', 'r')
# f.write('python很好用啊。\n是的，不错\n')
# a = f.read()
# a = f.readlines()
# print(a)
# f.close()   # io关闭

for line in f:
    print(line, end='')
f.close()



